<template>
    <div>
        <!-- <el-button type="primary" @click="add()">添加</el-button> -->
        <v-list @bianji="bianji"></v-list>
        <v-add :obj="obj" ref='aa'></v-add>
    </div>
</template>

<script>
import vList from './components/list.vue'
import vAdd from './components/add.vue'
export default {
    data () {
        return {
            obj:{
                istrue:false
            }
        }
    },
    components:{
        vList,
        vAdd
    },
    methods:{
        // list传过来的编辑操作
        bianji(uid){
            // this.obj.istrue=true
            this.$refs.aa.getinfo(uid)
            this.obj.istrue=true
        }
    }
}
</script>

<style lang="less">
    
</style>